export default {
  loadDefault: true,
  deviewCodeName: 'meditpanel_ability',
  deviewId: '3184ce5ceee9c11b87531770d820a99c',
  accUserMode: 2,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.DETAIL',
  },
  caption: '多编辑面板能力',
  codeName: 'detail_meditpanel_ability',
  appDataEntityId: 'web.detail',
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        editMode: true,
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  controls: [
    {
      embeddedAppViewId: 'web.detail_meditpanel_embed',
      panelStyle: 'TAB_TOP',
      aggMode: 'NONE',
      columnEnableFilter: 2,
      columnEnableLink: 2,
      groupMode: 'NONE',
      groupStyle: 'DEFAULT',
      degridColumns: [
        {
          clconvertMode: 'NONE',
          dataItemName: 'name',
          excelCaption: '项名称',
          appDEFieldId: 'name',
          valueType: 'SIMPLE',
          enableRowEdit: true,
          aggMode: 'NONE',
          align: 'LEFT',
          capLanguageRes: {
            lanResTag: 'DEF.LNAME.DETAIL.NAME',
          },
          caption: '项名称',
          codeName: 'name',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 150,
          widthUnit: 'PX',
          enableSort: true,
          id: 'name',
        },
        {
          clconvertMode: 'NONE',
          dataItemName: 'num',
          excelCaption: '数量',
          appDEFieldId: 'num',
          valueType: 'SIMPLE',
          enableRowEdit: true,
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '数量',
          codeName: 'num',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 100,
          widthUnit: 'PX',
          enableSort: true,
          id: 'num',
        },
      ],
      degridDataItems: [
        {
          appDEFieldId: 'name',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'name',
        },
        {
          appDEFieldId: 'num',
          valueType: 'SIMPLE',
          dataType: 29,
          id: 'num',
        },
        {
          appDEFieldId: 'id',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfkey',
        },
        {
          appDEFieldId: 'id',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfdataaccaction',
        },
        {
          appDEFieldId: 'master_id',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'master_id',
        },
        {
          appDEFieldId: 'name',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfmajortext',
        },
      ],
      degridEditItems: [
        {
          caption: '项名称',
          codeName: 'name',
          enableCond: 3,
          appDEFieldId: 'name',
          editor: {
            maxLength: 200,
            editorType: 'TEXTBOX',
            valueType: 'SIMPLE',
            editable: true,
            id: 'name',
          },
          allowEmpty: true,
          id: 'name',
        },
        {
          caption: '数量',
          codeName: 'num',
          enableCond: 3,
          appDEFieldId: 'num',
          editor: {
            editorType: 'TEXTBOX',
            valueType: 'SIMPLE',
            editable: true,
            id: 'num',
          },
          allowEmpty: true,
          id: 'num',
        },
        {
          caption: '标识',
          codeName: 'srfkey',
          enableCond: 3,
          appDEFieldId: 'id',
          editor: {
            editorType: 'HIDDEN',
            valueType: 'SIMPLE',
            editable: true,
            id: 'srfkey',
          },
          allowEmpty: true,
          id: 'srfkey',
        },
      ],
      pagingMode: 1,
      pagingSize: 20,
      sortMode: 'REMOTE',
      enableCustomized: true,
      enablePagingBar: true,
      enableRowEdit: true,
      enableRowNew: true,
      navViewPos: 'NONE',
      createControlAction: {
        appDEMethodId: 'create',
        appDataEntityId: 'web.detail',
        id: 'create',
      },
      fetchControlAction: {
        appDEMethodId: 'fetch_default',
        appDataEntityId: 'web.detail',
        id: 'fetch',
      },
      getDraftControlAction: {
        appDEMethodId: 'get_draft',
        appDataEntityId: 'web.detail',
        id: 'loaddraft',
      },
      getControlAction: {
        appDEMethodId: 'get',
        appDataEntityId: 'web.detail',
        id: 'load',
      },
      removeControlAction: {
        appDEMethodId: 'remove',
        appDataEntityId: 'web.detail',
        id: 'remove',
      },
      updateControlAction: {
        appDEMethodId: 'update',
        appDataEntityId: 'web.detail',
        id: 'update',
      },
      autoLoad: true,
      showBusyIndicator: true,
      controls: [
        {
          detoolbarItems: [
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_saveaction',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.SAVE',
              },
              caption: '保存',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-save',
                glyph: 'xf0c7@FontAwesome',
              },
              tooltip: '保存',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.SAVE',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem10',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_saveandnewaction',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDNEW',
              },
              caption: '保存并新建',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'sx-tb-saveandnew',
              },
              tooltip: '保存并新建',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDNEW',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem12',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_saveandexitaction',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
              },
              caption: '保存并关闭',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'sx-tb-saveandclose',
              },
              tooltip: '保存并关闭',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem11',
            },
            {
              itemType: 'SEPERATOR',
              id: 'tbitem18',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_removeandexitaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.EDITVIEW.REMOVEANDCLOSE',
              },
              caption: '删除并关闭',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-remove',
                glyph: 'xf00d@FontAwesome',
              },
              tooltip: '删除并关闭',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.EDITVIEW.REMOVEANDCLOSE',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem9',
            },
            {
              itemType: 'SEPERATOR',
              id: 'tbitem19',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_newaction',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.NEW',
              },
              caption: '新建',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-file-text-o',
                glyph: 'xf0f6@FontAwesome',
              },
              tooltip: '新建',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.NEW',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem5',
            },
            {
              itemType: 'SEPERATOR',
              id: 'tbitem21',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_copyaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.COPY',
              },
              caption: '拷贝',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-copy',
                glyph: 'xf0c5@FontAwesome',
              },
              tooltip: '拷贝',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.COPY',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem1',
            },
            {
              itemType: 'SEPERATOR',
              id: 'tbitem22',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_firstrecordaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              caption: '第一个记录',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-fast-backward',
                glyph: 'xf049@FontAwesome',
              },
              tooltip: '第一个记录',
              showIcon: true,
              id: 'tbitem2',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_prevrecordaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              caption: '上一个记录',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-step-backward',
                glyph: 'xf048@FontAwesome',
              },
              tooltip: '上一个记录',
              showIcon: true,
              id: 'tbitem7',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_nextrecordaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              caption: '下一个记录',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-step-forward',
                glyph: 'xf051@FontAwesome',
              },
              tooltip: '下一个记录',
              showIcon: true,
              id: 'tbitem6',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_lastrecordaction',
              uiactionTarget: 'SINGLEKEY',
              valid: true,
              caption: '最后一个记录',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-fast-forward',
                glyph: 'xf050@FontAwesome',
              },
              tooltip: '最后一个记录',
              showIcon: true,
              id: 'tbitem4',
            },
            {
              itemType: 'SEPERATOR',
              id: 'tbitem25',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'editview_helpaction',
              valid: true,
              capLanguageRes: {
                lanResTag: 'TBB.TEXT.*.HELP',
              },
              caption: '帮助',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-question',
                glyph: 'xf128@FontAwesome',
              },
              tooltip: '帮助',
              tooltipLanguageRes: {
                lanResTag: 'TBB.TOOLTIP.*.HELP',
              },
              showCaption: true,
              showIcon: true,
              id: 'tbitem3',
            },
          ],
          codeName: 'meditpanel_ability_meditviewpanel_quicktoolbar',
          controlType: 'TOOLBAR',
          logicName: '工具栏模板（默认编辑界面）',
          appDataEntityId: 'web.detail',
          controlParam: {
            id: 'meditviewpanel_quicktoolbar',
          },
          modelId: '48c8f789be8a5522d3003293c1cf2ffb',
          modelType: 'PSDETOOLBAR',
          name: 'meditviewpanel_quicktoolbar',
          id: 'meditpanel_ability_meditviewpanel_quicktoolbar',
        },
      ],
      codeName: 'main',
      controlType: 'MULTIEDITVIEWPANEL',
      logicName: '主表格',
      appDataEntityId: 'web.detail',
      controlParam: {
        id: 'meditviewpanel',
      },
      modelId: '686620dddfa436d4e5f1e767c641f441',
      modelType: 'PSDEGRID',
      name: 'meditviewpanel',
      id: 'web.detail.main',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.detail',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.DETAIL',
      },
      caption: '多编辑面板能力',
      codeName: 'meditpanel_ability_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.detail',
      controlParam: {},
      name: 'captionbar',
      id: 'meditpanel_ability_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEMEDITVIEW9',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.detail',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '多编辑面板能力',
  viewStyle: 'DEFAULT',
  viewType: 'DEMEDITVIEW9',
  enableDP: true,
  showCaptionBar: true,
  modelId: 'a698bef98ed6cde589aea10a77160bb1',
  modelType: 'PSAPPDEVIEW',
  name: 'DETAILmeditpanel_ability',
  id: 'web.detail_meditpanel_ability',
};
